package com.chen.apipassenger.remote;
import com.chen.internalcommon.dto.ResponseResult;
import com.chen.internalcommon.response.NumberCodeResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 验证码服务
 * @author chenLiuPing
 **/
@FeignClient("service-verificationCode")
public interface ServiceVerificationCodeClient {

    /**
     * 获取size长度的验证码
     * @param size
     * @return
     */
    @GetMapping("/numberCode/{size}")
    ResponseResult<NumberCodeResponse> getNumberCode(@PathVariable("size") int size);
}
